﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;


    public partial class MasterPage2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
       /* private string m_Titulo;
        public string Titulo
        {
            get
            {
                return m_Titulo;
            }
            set
            {
                m_Titulo = value;
                this.H1Titulo.InnerText = value;
            }
        }*/
        protected void InsertarFactura(object sender, EventArgs e)
        {
            FacturaControl control = new FacturaControl();
            String hola = txtFechaFactura.Text;
            control.InsertarFacturas(System.Int32.Parse(ddlTituloFactura.Text), System.Double.Parse(txtMontoFactura.Text), System.Double.Parse(txtPorcentajeFactura.Text), System.DateTime.Parse(txtFechaFactura.Text), System.Int32.Parse(txtNumeroFactura.Text));
        }
    }


